from owl_ai.service.llm_model_service import LLMModelService
from owl_common.base.model import AjaxResponse
from owl_common.descriptor.serializer import JsonSerializer
from ... import reg


@reg.api.route('/system/model/list', methods=['GET'])
@JsonSerializer()
def find_sys_model_page_list():
    model_list = LLMModelService.find_llm_model_list()
    return AjaxResponse.from_success(data=model_list)
